package org.visionlibrary.event.bus.exception;

/**
 * Thrown by subscribers in their {@link EventHandler} annotated
 * methods to indicate that a "veto" of the event has occured.
 * In order for a veto to be allowed, the subscriber must set the
 * {@link EventHandler#canVeto()} property to true, indicating
 * that the subscriber wishes to veto events of the specified type.
 * <p>
 * The VetoException is simply a marker class that extends {@link RuntimeException}
 * to indicate the veto.
 */
public class VetoException extends RuntimeException {
        private static final long serialVersionUID = 1L;

		public VetoException() {
			super();
		}

		public VetoException(String arg0, Throwable arg1, boolean arg2,
				boolean arg3) {
			super(arg0, arg1, arg2, arg3);
		}

		public VetoException(String arg0, Throwable arg1) {
			super(arg0, arg1);
		}

		public VetoException(String arg0) {
			super(arg0);
		}

		public VetoException(Throwable arg0) {
			super(arg0);
		}
}